<?php





class OptionsModule extends Module
{
	private $json = array();
	
	public function __config(){}
	
	public function __default(){}
	
	public function __dispatch(){
		//header("Content-type: application/json");
		//echo json_encode( $this->json );
	}
	
	
	
	public function SwlangAction()
	{
		$a = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : "/";
		
		if ( isset( $this->site->arguments[0] ) )
		{
			//session_start();
			$_SESSION['lang'] = $this->site->arguments[0];
		}
		header( "Location: " . $a );
	}
}